import React from 'react'
import { Redirect } from 'react-router-dom'

import My from '@/pages/my'
import Firends from '@/pages/friends'

import discover from './discover'
const routes = [
    {
        path:'/',
        exact:true,
        render: ()=>(
            <Redirect to='/discover' />
        )
        
    },
    ...discover,
    {
        path:'/my',
        component:My
    },
    {
        path:'/friends',
        component:Firends
    }

]

export default routes